package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Walton
 * @since 2020/8/20 15:12
 */
@Data
public class DevInsectSituationLampHistory extends Model<DevInsectSituationLampHistory> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 虫情灯ID
     */
    private int modbusAddr;
    /**
     * 电池电压
     */
    private Double voltageBattery;

    /**
     * 加热实际温度
     */
    private Double heatTemperatureActual;

    private String tenantId;

    private Long createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DevInsectSituationLampHistory{" +
                "id=" + id +
                ", modbusAddr=" + modbusAddr +
                ", voltageBattery=" + voltageBattery +
                ", heatTemperatureActual=" + heatTemperatureActual +
                ", tenantId='" + tenantId + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
